package com.frogs.ucenter.v1.request;

import javax.servlet.http.HttpServletRequest;

import com.frogs.framework.web.HttpRequestInfo;
import com.frogs.system.util.ApiUrlParamEnum;
import com.frogs.system.web.api.request.Request;
import com.frogs.system.web.exception.RequestIllegalException;

/**
 * 商品评价请求参数类
 *
 * @author lijian
 * @version 2014年3月15日 - 上午9:58:28
 */
public class TagEvaluateRelationListRequest extends Request {

	private int evaluateId;
	
	/** */
	public TagEvaluateRelationListRequest() {
		
	}
	
	@Override
	public void parse(HttpServletRequest request) {
		
		HttpRequestInfo requestInfo = new HttpRequestInfo(request);
		
		this.evaluateId = requestInfo.getIntParameter(ApiUrlParamEnum.evaluateId.getParamName(), 0);
		
		if(evaluateId == 0) {
			throw new RequestIllegalException("缺少商品评价id号!");
		}
		
	}
	
	public int getEvaluateId() {
		return evaluateId;
	}

	public void setEvaluateId(int evaluateId) {
		this.evaluateId = evaluateId;
	}
}
